import { createGlobalStyle } from "styled-components";
const GlobalStyles = createGlobalStyle`
:root {
  --primary-color: #36ad6a;
}
.ant-tabs-content, .ant-tabs-tabpane {
  height: 100%;
}
.t1 {
  animation: animation .3s linear forwards;
}
.t2 {
  animation: animation2 .3s linear forwards;
}



@keyframes animation {
  0% {
    width: 0%;
    height: 0%;
    border-radius: 100%;
  }
  50% {
    width: 50%;
    height: 50%;
    border-radius: 50%;
  }
  100% {
    width: 100%;
    height: 100%;
    border-radius: 0%;
  }
}

@keyframes animation2 {
  0% {
    width: 100%;
    height: 100%;
    border-radius: 0%;
  }
  50% {
    width: 50%;
    height: 50%;
    border-radius: 50%;
  }
  100% {
    width: 0%;
    height: 0%;
    border-radius: 100%;
  }
}

.ant-select-selector {
  border-radius: unset!important;
}
.drawer-1 {
  .ant-drawer-body {
    padding: 0!important;
  }
  .ant-drawer-header {
    padding:10px!important;
    border-bottom: none;
  }
}
.girds {
  background-image: linear-gradient(
    0deg, 
    rgba(0,0,0,0.5) 1px ,
    transparent 0
  ), linear-gradient(
    90deg,
    rgba(0,0,0,.5) 1px,
    transparent 0
  );
  background-position: 50%;
  background-size: 24px 24px;
}
/* .ant-card-body {
  padding: 15px!important;
} */

.notfound {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
}
.load-data {
  background-color: #fff;
  height: 100vh;
}
  body,
  html,
  h1,
  h2,
  h3,
  h4,
  ul,
  li,
  pre,
  span,
  div,
  button,
  form,
  input,
  a {
    padding: 0;
    margin: 0;
  }

  a {
    color: #222;
    text-decoration: none;
  }

  html, body, #root {
    width: 100%;
    height: 100%;
  }
.file-modal {
  transform: translateY(50%)!important;
  width: 550px!important;
  min-width: 0!important;
}
  .my-o-text-1 {
    /*1. 超出的部分隐藏 */
    overflow: hidden;

    /*2. 文字用省略号替代超出的部分 */
    text-overflow: ellipsis;

    /* 3. 弹性伸缩盒子模型显示 */
    display: -webkit-box;

    /* 4. 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 1;
    /* 5. 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-box-orient: vertical;
  }
  @keyframes aninema {
    0% {
      width: 0;
      height: 0;
    }
    50% {
      width: 500px;
      height: 500px;
    }
    100% {
      width: 1000px;
      height: 1000px;
    }
  }
  .text-2 {
    /*1. 超出的部分隐藏 */
    overflow: hidden;

    /*2. 文字用省略号替代超出的部分 */
    text-overflow: ellipsis;

    /* 3. 弹性伸缩盒子模型显示 */
    display: -webkit-box;

    /* 4. 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 2;

    /* 5. 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-box-orient: vertical;

  }

  .text {
    /*1. 超出的部分隐藏 */
    overflow: hidden;

    /*2. 文字用省略号替代超出的部分 */
    text-overflow: ellipsis;

    /* 3. 弹性伸缩盒子模型显示 */
    display: -webkit-box;

    /* 4. 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 3;

    /* 5. 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-box-orient: vertical;

  }

  .card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    padding: 5px 10px;
  }
  .notification {
    color: red;
    font-weight: 700; 
  }
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;

    h1 {
      font-size: 22px;
    }
  }
  #nprogress {
    background-color: rgba(0, 0, 0, .5);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    .bar  {
      height: 3px;
    }
  }
  /* body .ant-modal {
    min-width: 70%;
  } */

  .tag {
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin: 2px;
    display: inline-block;
    border-radius: 2px;
    user-select: none;

    &:hover {
      cursor: pointer;
    }

    &.active {
      background: rgba(0, 0, 0, 0.2);
      color: red !important;
      border: 1px solid red !important;
    }
  }

  .login-enter {
    transform: translateX(100px);
    opacity: 0;
  }

  .login-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all .5s linear;
  }

  .login-exit {
    transform: translateX(0);
    opacity: 1;
  }

  .ant-input-affix-wrapper, .ant-input {
    border-radius: 2px;
  }

  .login-exit-active {
    transform: translateX(-100px);
    opacity: 0;
    transition: all .5s linear;
  }

  ul, li, em {
    list-style: none;
    font-style: normal;
  }

  .my_step {
    .container_steps {
      padding: 0 100px;
    }

    .createHeader {
      text-align: center;
      padding-bottom: 10px;

      button {
        margin: 0 5px;
      }
    }
  }

  .img-header {
    margin-bottom: 10px;

    button {
      margin-right: 5px;
    }
  }

  .img-section {
    i {
      display: inline-block;
      width: 100px;
    }

    display: flex;

    .input {
      width: 200px;
      padding-right: 20px;
    }

    .img__container {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .ant-skeleton-button {
        width: 100% !important;
      }
      div {
        position: relative;
        padding: 5px;
        border: 2px solid transparent;
        box-sizing: border-box;
        overflow: hidden;
        span {
          position: absolute;
          width: 20px;
          color: rgb(255, 255, 255);
          text-align: center;
          border-radius: 10px;
          right: 0;
          height: 20px;
          background-color: rgb(54, 173, 106);
          bottom: 0px;
        }
      }
    }

  }

  .active {
    border: 2px solid #36ad6a !important;
  }

  .ant-layout-header {
    height: 45px;
  }
  .test-dewa {
      .ant-drawer-body {
        padding: 0!important;
      }
    }
  .ant-table-wrapper .ant-table-thead>tr>th,
  .ant-table-wrapper .ant-table-tbody>tr>td {
      @media screen and (min-width: 1280px) {
          //padding: 3px 2px !important;
          //background: red;
      }
      @media screen and (max-width: 1280px) {
          padding: 5px 10px!important;
      }
    text-align: center;
  }
  #root {

    .slick-dots-bottom {
    bottom: -12px;

    li {
      button {
        height: 5px;
        background-color: #36ad6a;
        opacity: .5;
      }
    }

    li.slick-active {
      button {
        background-color: #36ad6a;
        opacity: 1;
      }
    }
  }
  }

`;

export default GlobalStyles;